package com.ruoyi.base.domain;

import com.ruoyi.cems.domain.BmsBaseEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 应急TE单清单对象 base_emer_te_list
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@Data
@ApiModel(description = "应急TE单清单")
public class BaseEmerTeList extends BmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检查单名称 */
    @Excel(name = "检查单名称")
    @ApiModelProperty("检查单名称")
    private String name;

    /** 组名 */
    @Excel(name = "组名")
    @ApiModelProperty("组名")
    private String groupName;

    /** 岗位 */
    @Excel(name = "岗位")
    @ApiModelProperty("岗位")
    private String position;

    /** 等级 */
    @Excel(name = "等级")
    @ApiModelProperty("等级")
    private String level;

    /** 场景 */
    @Excel(name = "场景")
    @ApiModelProperty("场景")
    private String view;

    /** 模板版本 */
    @Excel(name = "模板版本")
    @ApiModelProperty("模板版本")
    private String tempVersion;

    @Excel(name = "备注")
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("检查单明细模板")
    private List<BaseEmerTeTemp> baseEmerTeTemps;

    @ApiModelProperty("单位编码")
    private String unitCode;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("REVISION", getREVISION())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("name", getName())
            .append("group", getGroupName())
            .append("level", getLevel())
            .append("view", getView())
            .append("tempVersion", getTempVersion())
            .append("remark", getRemark())
            .append("unitCode", getUnitCode())
            .toString();
    }
}
